﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace EMC_ASL.helper
{
    static class clsXMLHelper
    {
        public static void readItemMasterFile(out string sErrorMsg)
        {
            sErrorMsg = null;

            XmlDocument xmlDoc = new XmlDocument(); //* create an xml document object.
            try
            {
                xmlDoc.Load(@"C:\Documents and Settings\henry\Desktop\emc-asl\template\ASL-config.xml"); 

                //* Get elements.
                XmlNodeList xmlItemNo = xmlDoc.GetElementsByTagName("Item_Number");
                XmlNodeList xmlParent_Item_Number = xmlDoc.GetElementsByTagName("Parent_Item_Number");
                XmlNodeList xmlInventory_Item_Status_Code = xmlDoc.GetElementsByTagName("Inventory_Item_Status_Code");
                XmlNodeList xmlSerial_Num_Track = xmlDoc.GetElementsByTagName("Serial_Num_Track");
                XmlNodeList xmlPlanner_Code = xmlDoc.GetElementsByTagName("Planner_Code");
                XmlNodeList xmlIRE_Weight = xmlDoc.GetElementsByTagName("IRE_Weight");
                XmlNodeList xmlUSA_Weight = xmlDoc.GetElementsByTagName("USA_Weight");
                XmlNodeList xmlStandard_Cost = xmlDoc.GetElementsByTagName("Standard_Cost");
                XmlNodeList xmlIRE_DEFECTIVE_PART_DISPOSITION = xmlDoc.GetElementsByTagName("IRE_DEFECTIVE_PART_DISPOSITION");
                XmlNodeList xmlLOGISTICS_SOURCE_COUNTRY = xmlDoc.GetElementsByTagName("LOGISTICS_SOURCE_COUNTRY");
                XmlNodeList xmlPRODUCT_TYPE = xmlDoc.GetElementsByTagName("PRODUCT_TYPE");
                XmlNodeList xmlSTOCKING_LOCATION_TYPE = xmlDoc.GetElementsByTagName("STOCKING_LOCATION_TYPE");
                XmlNodeList xmlUSA_DEFECTIVE_PART_DISPOSITION = xmlDoc.GetElementsByTagName("USA_DEFECTIVE_PART_DISPOSITION");



            }
            catch (Exception ex)
            {
                sErrorMsg = ex.Message;
                return;
            }

        }
    }
}
